package com.woniuxy.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.dao.model.FoodVariety;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.dao.model.ProductsInfo;
import com.woniuxy.service.dto.FoodVarietyDto;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 * 菜品 Mapper 接口
 * </p>
 *
 * @author psy
 * @since 2022-06-28
 */
public interface FoodVarietyDao extends BaseMapper<FoodVariety> {
    List<FoodVariety> getFoodByStoreIdAndProductsId(Long storeId, Long productsId);

    List<FoodVarietyDto> getFoodByStoreIdAndProductsId2(Long storeId, Long productsId);

    List<FoodVarietyDto> getFoodByStoreId2(Long storeId);

    List<FoodVarietyDto> getFoodByPro(Long ProductsId);

    List<FoodVarietyDto> getFoodByPro2(Long ProductsId);

    List<FoodVariety> getFoodByStoreName(String keyword);

    List<FoodVariety> getFoodByProductName(String keyword);

    Page<FoodVariety> getMyFood(Page page, @Param("storeId") Long storeId, @Param("productsId") Long productsId);

    Page<FoodVariety> getAllMyFood(Page<FoodVariety> page, @Param("storeId") Long storeId);
}
